<!DOCTYPE html>

<html>
    <head>
        <meta charset="utf-8">
        <title>菜鸟教程(runoob.com)</title>
    </head>
    <body>
        <script>
            var parttl = new RegExp("e")
            // document.write(parttl.test("The best things in life are free"))
            document.write(parttl.exec("The best things in life are free"))
        </script>
    </body>
</html>